
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.GroupSetting;
import com.cmc.dao.GroupSettingDao;
import com.cmc.service.GroupSettingManager;
/**
 * Implementation of GeneralsettingManager interface.</p>
 * 
 * <p>
 * <a href="UserManagerImpl.java.html"><i>View Source</i></a>
 * </p>
 *
 * @aegis.mapping
 */
public class GroupSettingManagerImpl extends BaseManager implements GroupSettingManager {
    private GroupSettingDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setGroupSettingDao(GroupSettingDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.GroupSettingManager#getGroupSettings(com.cmc.model.GroupSetting)
     * 
     * @aegis.method
     * @aegis.method-return-type componentType="com.cmc.model.Generalsetting"
     * 
     */

    public List getGroupSettings(final GroupSetting groupSetting) {
        return dao.getGroupSettings(groupSetting);
    }

    /**
     * @see com.cmc.service.GroupSettingManager#getGroupSetting(String id)
     */
    public GroupSetting getGroupSetting(final String id) {
        return dao.getGroupSetting(new Long(id));
    }

    /**
     * @see com.cmc.service.GroupSettingManager#saveGroupSetting(GroupSetting groupSetting)
     */
    public void saveGroupSetting(GroupSetting groupSetting) {
        dao.saveGroupSetting(groupSetting);
    }

    /**
     * @see com.cmc.service.GroupSettingManager#removeGroupSetting(String id)
     */
    public void removeGroupSetting(final String id) {
        dao.removeGroupSetting(new Long(id));
    }
}
